diff -Naur mkspecs/common.orig/g++-base.conf mkspecs/common/g++-base.conf
--- mkspecs/common.orig/g++-base.conf	2012-03-14 16:01:12.000000000 +0200
+++ mkspecs/common/g++-base.conf	2012-04-05 14:53:05.670347102 +0300
@@ -8,17 +8,23 @@
 # you can use the manual test in tests/manual/mkspecs.
 #
 
-QMAKE_CC = gcc
+QMAKE_CC = PISILINUX_CC
 
 QMAKE_LINK_C       = $$QMAKE_CC
 QMAKE_LINK_C_SHLIB = $$QMAKE_CC
 
-QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -g
+QMAKE_CFLAGS_RELEASE    += PISILINUX_CFLAGS
+QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += PISILINUX_CFLAGS -g
 
-QMAKE_CXX = g++
+QMAKE_CXX = PISILINUX_CXX
 
-QMAKE_LINK       = $$QMAKE_CXX
-QMAKE_LINK_SHLIB = $$QMAKE_CXX
+
+QMAKE_LINK     = PISILINUX_CXX
+QMAKE_LINK_SHLIB   = PISILINUX_CXX
+QMAKE_LINK_C       = PISILINUX_CC
+QMAKE_LINK_C_SHLIB = PISILINUX_CC
+
+QMAKE_LFLAGS_RELEASE    += PISILINUX_LDFLAGS
 
 QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
 
diff -Naur mkspecs/common.orig/g++-unix.conf mkspecs/common/g++-unix.conf
--- mkspecs/common.orig/g++-unix.conf	2012-03-14 16:01:12.000000000 +0200
+++ mkspecs/common/g++-unix.conf	2012-04-05 14:49:41.723399705 +0300
@@ -10,5 +10,5 @@
 
 include(g++-base.conf)
 
-QMAKE_LFLAGS_RELEASE += -Wl,-O1
+QMAKE_LFLAGS_RELEASE += PISILINUX_LDFLAGS
 QMAKE_LFLAGS_NOUNDEF += -Wl,--no-undefined
diff -Naur mkspecs/common.orig/linux.conf mkspecs/common/linux.conf
--- mkspecs/common.orig/linux.conf	2012-03-14 16:01:12.000000000 +0200
+++ mkspecs/common/linux.conf	2012-04-05 14:54:23.487037709 +0300
@@ -57,7 +57,7 @@
 QMAKE_MOVE            = mv -f
 QMAKE_DEL_FILE        = rm -f
 QMAKE_DEL_DIR         = rmdir
-QMAKE_STRIP           = strip
+QMAKE_STRIP           =
 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
 QMAKE_CHK_DIR_EXISTS  = test -d
 QMAKE_MKDIR           = mkdir -p
